package org.xhnews.ui;

import java.io.UnsupportedEncodingException;

import net.rim.device.api.browser.field2.BrowserField;
import net.rim.device.api.browser.field2.BrowserFieldConfig;
import net.rim.device.api.ui.container.MainScreen;

public class NewsViewScreen extends MainScreen {
	BrowserField myBrowserField;
	public NewsViewScreen() {
		myBrowserField = new BrowserField();
		add(myBrowserField);
	}

	public void initialize(String html) {
		try {
			myBrowserField.displayContent(html.getBytes("utf-8"),
					"text/html; charset=utf-8", "http://localhost");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
